home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 2 / Amiga Tools 2.iso / hardware / wacomtabletdriver / wacom_1.16 / develop / wacom.h < prev    next >
C/C++ Source or Header  |  1995-03-09  |  5KB  |  99 lines

  1. /***********************************************************************/
  2. /* WACOM Digitizerdriver             (C) 1993-1994 by ROLAND SCHWINGEL */
  3. /***********************************************************************/
  4. /* Headerfile for receiving tabletdata from the driver                 */
  5. /* Revision 1.2                                                        */
  6. /***********************************************************************/
  7.  
  8. /* DEFINES *******************************/
  9. #define WACOM_PORT_NAME   "Wacom DataPort"     /* Name of the DataPort */
  10. #define NO_PRESS          -64;                 /* No valid Pressure */
  11.  
  12. /* Structures ****************************/
  13. struct Wacom
  14. {
  15.  UBYTE        Sync;            /* Synchronisation with subprocess */
  16.                                /* (internal must be 0)*/
  17.  UBYTE        Driver_running;  /* Driver active or not */
  18.                                /* 0 = inactive */
  19.                                /* 1 = active */
  20.  UBYTE        Wacom_Series;    /* 0 = SD-Series */
  21.                                /* 1 = UD-Series */
  22.  UBYTE        Beeper;          /* State of the Beeper */
  23.                                /* 0 = off */
  24.                                /* 1 = on */
  25.  UBYTE        Mode;            /* Pressure or "normal" Mode */
  26.                                /* 0 = normal */
  27.                                /* 1 = pressure */
  28.  UBYTE        MB_Emu;          /* Mousebuttonemulation in Pressure Mode */
  29.                                /* 0 = inactive */
  30.                                /* 1 = active */
  31.  int          Pressure_Limit;  /* Limit for LMB-Emulation (-30 ... 30) */
  32.  WORD         Pressure;        /* current Pressure when in Pressure Mode */
  33.                                /* WacomII-S: -30 ... 30 */
  34.                                /* WacomIV:   -60 ... 60 */
  35.  UBYTE        input_device;    /* Type of current Stylus/Digitzer */
  36.                                /* 1 = standard Stylus */
  37.                                /* 2 = pressure Stylus */
  38.                                /* 4 = Digitizer */
  39.  UBYTE        Buttons;         /* State of the current input_device Buttons */
  40.                                /* Standard Stylus:  1 = Frontbutton */
  41.                                /*                   2 = Sidebutton */
  42.                                /*                   3 = both */
  43.                                /* Digitizer:        1 = middle Button top */
  44.                                /*                   2 = left Button */
  45.                                /*                   3 = middle Button bottom */
  46.                                /*                   4 = right Button */
  47.  ULONG        Tablett_Max_X;   /* Maximum X-Value on the Digitizer */
  48.  ULONG        Tablett_Max_Y;   /* Maximum Y-Value on the Digitizer */
  49.  long         Tablett_X;       /* current X-Coordinate */
  50.                                /* when in WacomIV and Multimode: */
  51.                                /* X-Coordinate of the pen */
  52.  long         Tablett_Y;       /* current Y-Coordinate */
  53.                                /* when in WacomIV and Multimode: */
  54.                                /* Y-Coordinate of the pen */
  55.  
  56.  /* Additions: 10.02.1994 */
  57.  UBYTE        Set_Mouse;       /* Mouseemulation */
  58.                                /* 0 = off */
  59.                                /* 1 = Mousepointer and Buttons */
  60.                                /* 2 = only Mousepointer */
  61.  UBYTE        Commandset;      /* Commandset actually used */
  62.                                /* 0 = Wacom IV */
  63.                                /* 1 = Wacom II-S */
  64.  UBYTE        Multi_Mode;      /* Multimode on/off (only Wacom IV) */
  65.                                /* 0 = off */
  66.                                /* 1 = on */
  67.  UBYTE        Multi_Mouse;     /* inputdevice used as mouse when in */
  68.                                /* Multi_Mode (only WacomIV) */
  69.                                /* 0 = pen */
  70.                                /* 1 = Digitizer */
  71.  UBYTE        Macrokey;        /* pressed Macrobutton (only Wacom IV) */
  72.  UBYTE        MM_Dig_Buttons;  /* pressed cursorbuttons in Multimode */
  73.                                /* (only Wacom IV) */
  74.  ULONG        MM_Dig_X;        /* X-Coordinate of the cursor in Multimode */
  75.                                /* (only Wacom IV) */
  76.  ULONG        MM_Dig_Y;        /* Y-Coordinate of the cursor in Multimode */
  77.                                /* (only Wacom IV) */
  78.  
  79.  /* Additions: 20.03.1994 */
  80.  UBYTE        Proximity;       /* shows proximitiy of the pointing device */
  81.                                /* 0 = not in proximity*/
  82.                                /* 1 = in proximity */
  83.  
  84.  UBYTE        MM_Dig_Proximity;/* shows digitizers proximity in multimode */
  85.                                /* 0 = not in proximity */
  86.                                /* 1 = in proximity */
  87.  
  88.  UBYTE        reserved[112];   /* for future Expansions */
  89. };
  90.  
  91. /* Message Structure for getting the above for use with PutMsg() */
  92. struct WacomMSG
  93. {
  94.  struct Message Mess;
  95.  struct Wacom   WacomInfo;
  96.  UBYTE          reserved[32];  /* For future Expansions */
  97. };
  98.  
  99.